<?php /* Smarty version Smarty-3.1.12, created on 2013-02-12 19:56:26
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/prototypes/notificationIcon.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1263674936511a6c25805667-19914536%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c6bad5b5f1b3ca4552731a7052584b9853912955' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/prototypes/notificationIcon.tpl',
      1 => 1360695384,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1263674936511a6c25805667-19914536',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_511a6c2582cbe4_66051323',
  'variables' => 
  array (
    'steamID' => 0,
    'count' => 0,
    'iconClass' => 0,
    'label' => 0,
    'data' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_511a6c2582cbe4_66051323')) {function content_511a6c2582cbe4_66051323($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['steamID']->value==$_SESSION['user']['steamID']){?>
	<?php if ($_smarty_tpl->tpl_vars['count']->value>0){?>
		<?php $_smarty_tpl->tpl_vars["iconClass"] = new Smarty_variable("icon-envelope-alt", null, 0);?>
		<?php $_smarty_tpl->tpl_vars["label"] = new Smarty_variable("label-important", null, 0);?>
		<script type="text/javascript">
		$(document).ready(function() {
			  // Popover initialisieren
			  $("#userNotification").popover({
				  html:true,
				  placement:"right",
				  trigger: "click",
				  title: "Notifications",
				  content: function() {
				      return $('#userNotificationData').html();
				    }
			  });
			  
			});
		</script>
	<?php }else{ ?>
		<?php $_smarty_tpl->tpl_vars["iconClass"] = new Smarty_variable("icon-envelope", null, 0);?>
		<?php $_smarty_tpl->tpl_vars["label"] = new Smarty_variable('', null, 0);?>
	<?php }?>
	
<div style="margin:10px 0;">
	<i class="<?php echo $_smarty_tpl->tpl_vars['iconClass']->value;?>
 icon-2x t pointer" style="display:inline-block" id="userNotification" title="Notifications">
		<span class="label <?php echo $_smarty_tpl->tpl_vars['label']->value;?>
 notificationIconText"><?php echo $_smarty_tpl->tpl_vars['count']->value;?>
</span>
	</i>
</div>	
<div id="userNotificationData" class="hide">
<small>
	<?php if (count($_smarty_tpl->tpl_vars['data']->value)>0&&is_array($_smarty_tpl->tpl_vars['data']->value)){?>
	<ul>
	  <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
	  	<li>
	  		<?php if ($_smarty_tpl->tpl_vars['v']->value['href']!=''){?>
	  			<a href="<?php echo $_smarty_tpl->tpl_vars['v']->value['href'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['count'];?>
</a>
	  		<?php }else{ ?>
	  			<?php echo $_smarty_tpl->tpl_vars['v']->value['count'];?>

	  		<?php }?>
	  		&nbsp;<?php echo $_smarty_tpl->tpl_vars['v']->value['message'];?>

	  	</li>
	  <?php } ?>
	</ul>
	<?php }?>
</small>
</div>
<?php }?><?php }} ?>